namespace :ruiqu do
  resources :todos
  resources :business_companies do
    collection do
      get :lead_in
      post :csv_create
    end
  end

  resource :store do
    resource :contact_info
    resources :products do
      member do
        put :unuse
        delete :remove_image
      end
    end

    resources :product_categories do
      put :unuse, on: :member
    end
  end #end ruiqu for store

  resources :product_categories, only: [] do
    resources :store_products, as: "products", path: "products" do
      member do
        put :unuse
        delete :remove_image
      end
    end
  end

  resources :store_friends do
    collection do
      get :apply_list
    end
  end

  resources :store_orders, only: [:index]
  resources :custom_products do
    member do
      put :unuse
    end
  end

  resources :store_customers
end# ruiqu end
